#include "Seqlist.h"

void test1()
{
	SL s;
	s.a = NULL;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPushFront(&s, 6);
	SLPrint(&s);
	SLPopBack(&s);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	//SLPushFront(&s,2);
	SLDestroy(&s);
}
void test2()
{
	SL s;
	s.a = NULL;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPrint(&s);

	SLinsert(&s,3,40);
	SLPrint(&s);

	SLErase(&s,2);
	SLPrint(&s);

}
void test3()
{
	SL s;
	s.a = NULL;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPrint(&s);

	//SLinsert(&s, 3, 40);
	//SLPrint(&s);

	//SLErase(&s, 2);
	//SLPrint(&s);
	SLPopBack(&s);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);



}
int main()
{
	SL s;
	s.a = NULL;
	test3();
	return 0;
}